From 142be3dd62a039410843e6995aae5f09419743d4 Mon Sep 17 00:00:00 2001 From: Jim Blandy Date: Mon, 14 Jun 1993 15:06:46 +0000 Subject: [PATCH] * xdisp.c (display_text_line): Use temporary variable. --- src/xdisp.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/xdisp.c b/src/xdisp.c index 62a029c818d..e9777efee39 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -2062,14 +2062,17 @@ display_text_line (w, start, vpos, hpos, taboffset) unsigned char *p = XSTRING (Voverlay_arrow_string)->data; int i; int len = XSTRING (Voverlay_arrow_string)->size; + int arrow_end; if (len > width) len = width; for (i = 0; i < len; i++) startp[i] = p[i]; - if (desired_glyphs->used[vpos] < - (len + startp - desired_glyphs->glyphs[vpos])) - desired_glyphs->used[vpos] = len + startp - desired_glyphs->glyphs[vpos]; + + /* Bug in SunOS 4.1.1 compiler requires this intermediate variable. */ + arrow_end = (startp - desired_glyphs->glyphs[vpos]) + len; + if (desired_glyphs->used[vpos] < arrow_end) + desired_glyphs->used[vpos] = arrow_end; overlay_arrow_seen = 1; } -- 2.30.2